home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / qrt.lzh / TABLE.QRT < prev    next >
Text File  |  1989-02-16  |  7KB  |  287 lines

  1. { **************************************************
  2.  
  3.    Glass table with vase and candy bowl.  This
  4.    is the first test of glass surfaces, and came out
  5.    surprisingly well - it actually does look like
  6.    glass!  This image requires QRT 1.4 to run.
  7.  
  8.    Rendered with QRT rayracing system
  9.  
  10.    Steve Koren -  23 AUG 88
  11.  
  12.   ************************************************** }
  13.  
  14.  
  15. FILE_NAME = Table.RAW
  16.  
  17. PATTERN ( x_size = 80,
  18.           y_size = 30,
  19.           name   = BLOCK,
  20.  
  21.           RECTANGLE (
  22.             start_x = 3,  start_y = 3,
  23.             end_x   = 77, end_y   = 27,
  24.             diff    = (.8, .7, .4);
  25.           )
  26.         )
  27.  
  28. PATTERN ( x_size = 90,
  29.           y_size = 90,
  30.           name   = FLOOR,
  31.  
  32.           RECTANGLE (
  33.             start_x = 0,  start_y = 0,
  34.             end_x   = 55, end_y   = 55,
  35.             diff    = (.1, .8, .1)
  36.           )
  37.  
  38.           RECTANGLE (
  39.             start_x = 60, start_y = 0
  40.             end_x   = 85  end_y   = 55
  41.             diff    = (.2, .3, .8)
  42.           )
  43.  
  44.           RECTANGLE (
  45.             start_x = 0,  start_y = 60
  46.             end_x   = 55  end_y   = 85
  47.             diff    = (.2, .3, .8)
  48.           )
  49.         )
  50.  
  51. BEGIN_INSTANCES
  52.  
  53.   { ** glass table leg - hollow glass cylender ** }
  54.  
  55.   NAME = table_leg;
  56.   BEGIN_BBOX
  57.  
  58.     QUADRATIC ( loc     = (0, 0, 0),
  59.                 a       = 1, b  = 0, c  = 1,
  60.                 d       = 300,
  61.  
  62.                 xmin    = -18, xmax = 18,
  63.                 ymin    = 0,   ymax = 70,
  64.                 zmin    = -18, zmax = 18,
  65.  
  66.                 diff    = (0, 0, 0),
  67.                 trans   = (.7, .7, .7),
  68.                 mirror  = (.25, .25, .25),
  69.                 index   = 1.33,
  70.                 density = (.022, .022, .022)
  71.               )
  72.  
  73.     QUADRATIC ( loc     = (0, 0, 0),
  74.                 a       = 1, b  = 0, c  = 1,
  75.                 d       = 144,
  76.  
  77.                 xmin    = -12, xmax = 12,
  78.                 ymin    = 0,   ymax = 70,
  79.                 zmin    = -12, zmax = 12,
  80.  
  81.                 diff    = (0, 0, 0),
  82.                 trans   = (1, 1, 1),
  83.                 mirror  = (.1, .1, .1),
  84.                 index   = 1.33,
  85.                 density = (.022, .022, .022)
  86.               )
  87.   END_BBOX
  88.  
  89. END_INSTANCES
  90.  
  91. { ******************** GROUND ********************** }
  92.  
  93. PARALLELOGRAM ( loc = (-10000, 0, -10000),
  94.                 v1  = (0,0, 20000),
  95.                 v2  = (20000, 0, 0)
  96.  
  97.                 diff    = (.1, .1, .1),
  98.                 pattern = BLOCK
  99.               )
  100.  
  101.  
  102. { ******************** OBJECTS ********************** }
  103.  
  104. { ** FLOOR ** }
  105.  
  106. PARALLELOGRAM ( loc  = (80, .01, -20),
  107.                 v1   = (240, 0, 0),
  108.                 v2   = (0, 0, 240),
  109.                 diff = (0, 0, 0)
  110.  
  111.                 pattern = FLOOR
  112.                 xmult   = .8,
  113.                 ymult   = .8
  114.               )
  115.  
  116. { ** TABLE LEGS ** }
  117.  
  118. BEGIN_BBOX
  119.   INSTANCE_OF ( name   = table_leg,
  120.                 loc    = (140, 0, 40)
  121.               )
  122.  
  123.   INSTANCE_OF ( name   = table_leg,
  124.                 loc    = (260, 0, 40)
  125.               )
  126. END_BBOX
  127.  
  128. BEGIN_BBOX
  129.   INSTANCE_OF ( name   = table_leg,
  130.                 loc    = (140, 0, 160)
  131.               )
  132.  
  133.   INSTANCE_OF ( name   = table_leg,
  134.                 loc    = (260, 0, 160)
  135.               )
  136. END_BBOX
  137.  
  138. { ** TABLE TOP ** }
  139.  
  140. BEGIN_BBOX
  141.  
  142.   PARALLELOGRAM ( loc      = (100, 70, 0),
  143.                   v1       = (0, 0, 200),
  144.                   v2       = (200, 0, 0),
  145.  
  146.                   diff     = (0, 0, 0),
  147.                   trans    = (.7, .7, .7),
  148.                   mirror   = (.23, .23, .23),
  149.                   index    = 1.33,
  150.                   density  = (.015, .015, .015)
  151.                 )
  152.  
  153.   PARALLELOGRAM ( loc      = (100, 85, 0),
  154.                   v1       = (0, 0, 200),
  155.                   v2       = (200, 0, 0),
  156.  
  157.                   diff     = (0, 0, 0),
  158.                   trans    = (1, 1, 1),
  159.                   mirror   = (.25, .25, .25),
  160.                   index    = 1.33,
  161.                   density  = (.015, .015, .015)
  162.                 )
  163.  
  164.  
  165.   { ** SIDES ** }
  166.  
  167.   PARALLELOGRAM ( loc = (100, 70, 0),
  168.                   v1  = (0, 0, 200),
  169.                   v2  = (0, 15, 0),
  170.  
  171.                   diff     = (0, 0, 0),
  172.                   trans    = (.7, .7, .7),
  173.                   mirror   = (.23, .23, .23),
  174.                   index    = 1.33,
  175.                   density  = (.016, .016, .016)
  176.                 )
  177.  
  178.   PARALLELOGRAM ( loc = (100, 70, 0),
  179.                   v1  = (200, 0, 0),
  180.                   v2  = (0, 15, 0),
  181.  
  182.                   diff     = (0, 0, 0),
  183.                   trans    = (.7, .7, .7),
  184.                   mirror   = (.23, .23, .23),
  185.                   index    = 1.33,
  186.                   density  = (.016, .016, .016)
  187.                 )
  188.  
  189.   PARALLELOGRAM ( loc = (100, 70, 200),
  190.                   v1  = (200, 0, 0),
  191.                   v2  = (0, 15, 0),
  192.  
  193.                   diff     = (0, 0, 0),
  194.                   trans    = (.7, .7, .7),
  195.                   mirror   = (.23, .23, .23),
  196.                   index    = 1.33,
  197.                   density  = (.016, .016, .016)
  198.                 )
  199.  
  200.   PARALLELOGRAM ( loc = (300, 70, 0),
  201.                   v1  = (0, 0, 200),
  202.                   v2  = (0, 15, 0),
  203.  
  204.                   diff     = (0, 0, 0),
  205.                   trans    = (.7, .7, .7),
  206.                   mirror   = (.23, .23, .23),
  207.                   index    = 1.33,
  208.                   density  = (.016, .016, .016)
  209.                 )
  210.  
  211. END_BBOX
  212.  
  213. { ** CANDY BOWL  & VASE ** }
  214.  
  215. BEGIN_BBOX
  216.  
  217.   BEGIN_BBOX
  218.     QUADRATIC ( loc     = (200, 100, 100),
  219.                 a       = 1, b  = 2, c  = 1,
  220.                 d       = 900,
  221.  
  222.                 xmin    = -30, xmax = 30,
  223.                 ymin    = -15, ymax = 0,
  224.                 zmin    = -30, zmax = 30,
  225.  
  226.                 diff    = (1, .1, .1),
  227.                 reflect = .8
  228.                 sreflect= 20
  229.               )
  230.  
  231.     SPHERE   ( loc      = (185, 95, 110),
  232.                radius   = 7,
  233.                diff     = (.1, .1, 1)
  234.              )
  235.  
  236.     SPHERE   ( loc      = (200, 93, 80),
  237.                radius   = 7,
  238.                diff     = (.1, 1, .1)
  239.              )
  240.  
  241.   END_BBOX
  242.  
  243.   { ** VASE ** }
  244.  
  245.   BEGIN_BBOX
  246.  
  247.     QUADRATIC ( loc     = (260, 85, 50),
  248.                 a       = 1, b = 0, c = 1,
  249.                 d       = 100,
  250.  
  251.                 xmin    = -10, xmax = 10,
  252.                 ymin    = 0,   ymax = 50,
  253.                 zmin    = -10, zmax = 10,
  254.  
  255.                 diff    = (.1, .7, .1),
  256.                 reflect = .7,
  257.                 sreflect=20
  258.               )
  259.   END_BBOX
  260.  
  261. END_BBOX
  262.  
  263. OBSERVER ( loc    = (-50, 180, -30)
  264.            lookat = (180, 50, 100)
  265.          )
  266.  
  267. SKY ( horiz  = (.10, .1, .75)
  268.       zenith = (.10, .1, .60)
  269.       dither = 4
  270.     )
  271.  
  272. LAMP ( loc = (150, 250, -80)
  273.        radius = 5,
  274.        dist = 250
  275.      )
  276.  
  277. LAMP ( loc = (250, 50, 250),
  278.        radius = 5,
  279.        dist   = 60
  280.      )
  281.  
  282. FIRST_SCAN = 0; LAST_SCAN  = 399
  283.  
  284. FOC_LENGTH = 75
  285.  
  286.  
  287.